query parameters sending to controller action asp.net core

50

query parameters sending to controller action asp.net core -

// GET api/user/firstname/lastname/address
[HttpGet("{firstName}/{lastName}/{address}")]
public string GetQuery(string id, string firstName, string lastName, string address)
{
    return $"{firstName}:{lastName}:{address}";
}

Comments

Submit
0 Comments